from base import EventHandler

class EventHandler(EventHandler):
    
     def process(self, context, source):
        if context.account.isLoggedIn():
            self.redirectToUserPreferences(context)
        return context.newRedirectDocument().createDocument(
            context,
            source
        ) 